import java.util.Scanner;


public class NotepadDemo {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		
		//Create notepads
//		SimpleNotepad simple = new SimpleNotepad(3);
		System.out.println("Enter your password fo future use: ");
		String password = sc.nextLine();
		while(password.length() < 3){
			System.out.println("Enter your password fo future use : ");
			password = sc.nextLine();
		}
		
		ElectronicSecuredNotepad electronic = new ElectronicSecuredNotepad(3, password, false);
//		SecureNotepad secure = new SecureNotepad(3, password);
//		
//		//Simple
//		simple.addTextToPage(1, "Principles of OOP: Encapsulation,Inheiritance, Abstraction, Polimorphism");
//		simple.getPage(1).setTitle("MY TITLE");
//		simple.showNotepad();
//		
//		simple.deleteTextOnPage(1);
//		simple.showNotepad();
//		simple.addTextToPage(1, "Principles of OOP: Encapsulation,Inheiritance, Abstraction, Polimorphism");
//		simple.overWriteTextOnPage(1, "This text was overWrite");
//		simple.showNotepad();
//		
//		
//		//Secure
//		secure.addTextToPage(2, "Principles of OOP: Encapsulation,Inheiritance, Abstraction, Polimorphism");
//		secure.getPage(1).setTitle("MY secure TITLE");
//		secure.showNotepad();
//		
//		secure.deleteTextOnPage(2);
//		secure.showNotepad();
//		secure.addTextToPage(1, "Principles of OOP: Encapsulation,Inheiritance, Abstraction, Polimorphism");
//		secure.overWriteTextOnPage(1, "This text was overWrite");
//		secure.showNotepad();
		
		
		//Electronic Secure Notepad
		
		electronic.addTextToPage(2 , "Text and more Text I am sick of TExt");
		electronic.start();
		electronic.addTextToPage(2, "Text and more Text I am sick of TExt");
		electronic.showNotepad();
		electronic.addTextToPage(1, "Text with number 1 and more Text I am sick of TExt");
		electronic.printAllPagesWithDigits();
		electronic.stop();
		
	}

}
